package icu.zqyhdm.blog.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import icu.zqyhdm.blog.entity.Tag;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description 文章文章的详细信息
 * @Author lifu
 * @Date 2021/6/22 14:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "文章文章的详细信息")
public class ArticleDetailVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "作者id")
    private Integer authorId;

    @ApiModelProperty(value = "作者昵称")
    private String authorName;

    @ApiModelProperty(value = "作者头像")
    private String authorImg;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "首图")
    private String firstPicture;

    @ApiModelProperty(value = "浏览数")
    private Integer views;

    @ApiModelProperty(value = "点赞数")
    private Integer thumbs;

    @ApiModelProperty(value = "文章类型id")
    private Integer typeId;

    @ApiModelProperty(value = "文章类型名")
    private String typeName;

    @ApiModelProperty(value = "文章标列表")
    private List<TagVo> tagVoList;

    @ApiModelProperty(value = "上一篇")
    private ArticleInfoVo lastArticle;

    @ApiModelProperty(value = "下一篇")
    private ArticleInfoVo nextArticle;

    @ApiModelProperty(value = "相关推荐")
    private List<ArticleInfoVo> recommendArticleList;
}
